<template>
	<view class="content">
		<view class="image">
			<swiper class="swiper" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
				<swiper-item v-for="(item,index) in bannerlist" :key="index">
					<navigator :url="item.path" class="swiper-item ">
						<image class="swiper1-img" :src="item.pathimg"></image>
					</navigator>
				</swiper-item>
				<swiper-item v-if="bannerlist.length<=0">
					<navigator class="swiper-item">
						<image class="swiper1-img" src="../../static/image/index-banner.png"></image>
					</navigator>
				</swiper-item>
				<swiper-item v-if="bannerlist.length<=0">
					<navigator class="swiper-item ">
						<image class="swiper1-img" src="../../static/image/index-banner2.png"></image>
					</navigator>
				</swiper-item>
			</swiper>
		</view>
		<view class="nav-wrap" :class="{ show_bg: is_show_bg }">
			<view class="searchBlock">
				<view class="nav-bar-wrap">我的孩子</view>
				<view class="select-child-wrap" @tap="showChild">
					<text class="child-name" v-if="currentChild.nicheng != ''">{{ currentChild.nicheng }}</text>
					<text class="child-name" v-else>暂未绑定孩子</text>
					<text class="iconfont iconxiala"></text>
					<view class="select-child" v-show="selectChild">
						<view v-for="(item, index) in childList" :key="item.student_id" @tap.stop="changeChild(index)" class="child-item">
							<text>{{ item.nicheng }}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="icon-notice">
				<i class="iconfont iconsaoyisao" @tap="scanCode"></i>
				<text class="iconfont icontongzhi-" @tap="linkInform"></text>
				<view class="pluls_text" v-if="notice_num > 0">{{notice_num}}</view>
			</view>
		</view>
		<view class="cont">
			<view class="modular">
				<view class="clos">
					<navigator url="../child/child-detail" hover-class="false" class="col">
						<image src="../../static/image/index-child.png" mode=""></image>
						<text>孩子</text>
					</navigator>
					<navigator url="../parenting/zhitisheng" hover-class="false" class="col">
						<image src="../../static/image/index-table.png" mode=""></image>
						<text>智提升</text>
					</navigator>
					<navigator url="../private-school/index" hover-class="false" class="col">
						<image src="../../static/image/index-privateSchool.png" mode=""></image>
						<text>智私塾</text>
					</navigator>
					<navigator hover-class="false" :url="'../group/group-index?student_id=' + currentChild.student_id + '&is_exam_type=1'"
					 class="col">
						<image src="../../static/image/index-connect.png" mode=""></image>
						<text>班家通</text>
					</navigator>
					<navigator url="../package/packagelist?type=1" hover-class="false" class="col">
						<image src="../../static/image/index-smart.png" mode=""></image>
						<text>智源城</text>
					</navigator>
				</view>
				<navigator url="index-notice" hover-class="fales" class="notice">
					<view class="notice-title">最新公告</view>
					<view class="notice-art">
						<swiper vertical="true" autoplay="true" circular="true" interval="3000">
							<swiper-item v-for="(item, index) in msgList" :key="index">
								<view class="notice-cont">{{ item.notice_title }}</view>
							</swiper-item>
						</swiper>
					</view>
				</navigator>
			</view>
			<!-- 课表 -->
			<view class="tableView">
				<view class="titleView">
					<view class="title-left">课表</view>
					<view class="title-right">
						<view v-for="(item, index) in titleList" :key="index" class="titleName" :class="titleIndex == index ? 'titleActive' : ''"
						 @click="titleClick(index)">
							{{ item }}
						</view>
					</view>
				</view>
				<uni-table :classType="classType" :tableType="tableType" :selfType="selfType" ref="uniTable" v-if="titleIndex != 1"></uni-table>
				<view class="not_data" v-if="titleIndex == 1">
					<i class="iconfont iconzanwukecheng"></i>
					<view class="not_data_text">当前暂无课表</view>
				</view>
			</view>
			<!-- 课表 -->
			<view class="homework-wrap">
				<view class="homework-title-wrap">
					<view class="homework-title">今日作业</view>
					<navigator class="all-homework" :url="'../child/change_groups?student_id=' + currentChild.student_id + '&is_exam_type=1'"
					 hover-class="none">
						<text class="all-homework-text">全部作业</text>
						<text class="iconfont iconfanhui btn-all-homework"></text>
					</navigator>
				</view>
				<view>
					<view style="background: #FFFFFF;" class="not_data" v-if="homeworkList.length==0">
						<i class="iconfont iconzanwukecheng"></i>
						<view class="not_data_text">当前暂无作业</view>
					</view>
					<view class="h_item" v-for="(item, index) in homeworkList" :key="index">
						<view class="grid_item">
							<view class="work-status" :class="item.color">{{ item.correct_state_msg }}</view>
							<view class="grid_r1">
								<text>{{ item.name }}</text>
								<view>{{ item.subject_name }}</view>
							</view>
							<view class="class-wrap">
								<view class="class-name">班级：{{ item.group_name }}</view>
								<view class="homework-type">类型：{{ item.type_msg }}</view>
							</view>
							<view class="grid_r2">开始时间：{{ item.start_time }}</view>
							<view class="grid_r2">截止时间：{{ item.end_time }}</view>
							<view class="grid_r5" v-if="item.type != 4 && item.correct_state === 2">
								<view class="grid_r5" v-if="item.type != 4 && item.correct_state === 2">
									<navigator hover-class="none" :url="'../task/all?pagetype=correct&is_exam_type=' + item.is_exam_type + '&type=' + item.type + '&class_log_id=' + item.class_log_id">
										<view class="btn_item btn_analyse">试题解析</view>
									</navigator>
									<navigator hover-class="none" :url="'../task/all?pagetype=error&is_exam_type=' + item.is_exam_type + '&type=' + item.type + '&class_log_id=' + item.class_log_id">
										<view class="btn_item btn_error">查看错题</view>
									</navigator>
									<navigator hover-class="none" :url="'../child/practise_report?is_exam_type=' + item.is_exam_type + '&type=' + item.type + '&class_log_id=' + item.class_log_id">
										<view class="btn_item btn_report">作业报告</view>
									</navigator>
								</view>
							</view>
							<view class="grid_r5 finish" v-if="item.type == 4 && item.correct_state === 2">已完成</view>
						</view>
					</view>
				</view>
			</view>

			<!-- 推荐 -->
			<recommend></recommend>
			<!-- 文章 育儿经 -->
			<view class="articleList">
				<view class="articleTitle">狼爸虎妈育儿经</view>
				<scroll-view scroll-x="true" class="articleMenu">
					<view class="menu" :class="navIndex == index ? 'active' : ''" v-for="(item, index) in navList" :key="index" @tap="changeArticleType(index)">
						{{ item.im_type_name }}
					</view>
					<view class="more" @click="gotoArticleMore">
						更多<text class="iconfont iconfanhui btn-all-homework" style="color: #FF9900;"></text>
					</view>
				</scroll-view>
				<list :list="news" :status="status" :contentText="contentText" stateType="2" addType="2"></list>
			</view>
		</view>
	</view>
</template>

<script>
	import util from '@/common/util.js';
	import uniTable from '@/components/table/table.vue';
	import myTable from '@/components/mytable.vue';
	import list from '@/components/artlist/artlist';
	import recommend from './components/recommend.vue';
	export default {
		components: {
			uniTable,
			myTable,
			list,
			recommend
		},
		data() {
			return {
				titleList: ['学校', '辅导', '私塾', '自订'],
				currentChild: {},
				msgList: [],
				datas: [],
				homeworkList: [],
				is_show_bg: false,
				selectChild: false,
				childList: [],
				titleIndex: '',
				indicatorDots: true,
				autoplay: true,
				interval: 2000,
				duration: 500,
				news: [],
				status: 'more',
				contentText: {
					contentdown: '上拉加载更多',
					contentrefresh: '加载中',
					contentnomore: '没有更多',
					contentnot: '没数据'
				},
				navList: [],
				navIndex: 0,
				page: 1,
				reload: true,
				old: {
					scrollTop: 0
				},
				subjectList: [], // 科目列表
				classroom_id: '', // 私塾id
				notice_num: 0,
				classType: 2, //添加班级检索
				tableType: 1, //班级课表 1是 2不是
				selfType: 1, //私塾课表 1不是 2是
				isFirst: true, //是否是第一次加载课表组件
				bannerlist: []
			};
		},
		onPullDownRefresh() {
			this.child();
			this.titleIndex = 0;
			if (this.classType != 2 || this.selfType != 1) {
				this.classType = 2;
				this.tableType = 1;
				this.selfType = 1;
			} else {
				var _this = this;
				setTimeout(function() {
					_this.$refs.uniTable.getClass();
				}, 10);
			}
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		onReachBottom() {
			this.page = this.page + 1;
			var _this = this;
			setTimeout(function() {
				_this.getList();
			}, 500);
		},
		onLoad() {
			this.getType();
			this.announcement();

			// PS： 这里手动获取用户信息并设置到缓存中
			this.$zapi.apiPost('/user/currency.basic/GetUserInfo').then(res => {
				uni.setStorageSync('userInfo', res.data.data);
			});
		},
		onShow() {
			this.child();
			uni.showTabBar({
				success: function(e) {
					// console.log(e);
				}
			});
			this.page = 1;
			this.news = [];
			this.getList();
			this.getnoticNum();
			this.titleIndex = 0;
			if (this.classType != 2 || this.selfType != 1) {
				this.classType = 2;
				this.tableType = 1;
				this.selfType = 1;
			} else {
				var _this = this;
				setTimeout(function() {
					if (!_this.isFirst) {
						_this.$refs.uniTable.getClass();
					}
				}, 10);
			}
			var _this = this;
			setTimeout(function() {
				_this.isFirst = false;
			}, 100);
			this.getBannerList();
		},
		mounted() {
			this.$refs.Series.$emit('bridge');
		},
		onPageScroll: function(e) {
			if (e.scrollTop === 0) {
				this.is_show_bg = false;
			} else {
				this.is_show_bg = true;
			}
		},
		methods: {
			getBannerList() {
				this.$qzapi.apiPost("api/v1/mobile/banner/infos").then(res => {
					if (res.data.code == 200) {
						this.bannerlist = res.data.data;
						console.log(this.bannerlist, "===");
					}
				});
			},
			// 扫一扫关注
			scanCode() {
				var _this = this;
				uni.scanCode({
					scanType: ['qrCode'],
					success: function(res) {
						var data = JSON.parse(res.result);
						if (data['type'] == 'gzschool') {
							_this.$zapi.apiPost('user/shakeschool.Users/schoolFollowAdd', {
								school_id: uni.getStorageSync('currentChild').student_id
							}).then(res => {
								if (res.data.code == 200) {
									uni.showToast({
										title: '成功关注了' + data.nickname,
										icon: 'none'
									});
								} else {
									uni.showToast({
										title: '你已关注该用户',
										icon: 'none'
									});
								}
							});
						}
					}
				});
			},
			gotoArticleMore() {
				uni.navigateTo({
					url: '/pages/articleModule/article-childList'
				});
			},
			// 切换文章类型
			changeArticleType(index) {
				this.navIndex = index;
				this.page = 1;
				this.reload = true;
				this.getList();
			},
			/* 获取文章列表 */
			getList() {
				var data = {
					// is_show: 0, //2通过 仅查看通过审核的文章
					page: this.page,
					pagesize: 8
				};
				if (this.navIndex) {
					data.im_type_id = this.navList[this.navIndex].im_type_id;
				}
				this.$zapi.apiPost('user/information.Lists/InformationList', data).then(res => {
					if (res.data.code == 200) {
						var list = res.data.data.data;
						for (var i = 0; i < list.length; i++) {
							list[i].time = util.getBriefTime(list[i].creat_time);
						}
						this.news = this.reload ? list : this.news.concat(list);
						this.reload = false;
						this.status = 'more';
					} else {
						if (this.reload) {
							this.news = [];
						} else {
							this.status = 'noMore';
						}
					}
				});
			},
			/* 获取文章分类列表 */
			getType() {
				this.$zapi.apiPost('user/information.Lists/listType').then(res => {
					if (res.data.code == 200) {
						var da = res.data.data;
						if (da) {
							da.unshift({
								im_type_name: '全部',
								im_type_id: null
							});
						}
						for (let i = 0; i < da.length; i++) {
							da[i].name = da[i].im_type_name;
						}
						this.navList = da;
						this.$forceUpdate();
					} else {
						this.navList.unshift({
							im_type_name: '全部',
							im_type_id: null
						});
					}
				});
			},
			// 跳转通知
			linkInform() {
				uni.navigateTo({
					url: '../mine/inform/inform-list'
				});
			},
			/* 智学天地 智测 */
			gotointelligence: function() {
				this.$zapi.apiPost('user/parevalua.users/state').then(res => {
					if (res.data.code == 200) {
						/* 会话处理 */
						if (res.data.data.state == 1) {
							uni.navigateTo({
								url: '../intelligence-test/cpresult'
							});
						} else {
							uni.navigateTo({
								url: '../intelligence-test/studycp'
							});
						}
					}
				});
			},
			no() {
				uni.showToast({
					title: '该功能暂未开通',
					icon: 'none'
				});
			},
			pageChangeRep() {},
			changeChild(index) {
				// 切换孩子
				this.selectChild = false;
				this.currentChild = this.childList[index];
				uni.setStorageSync('index', index);
				uni.setStorageSync('currentChild', this.currentChild);
				this.homework();
			},
			showChild() {
				this.selectChild = !this.selectChild;
			},
			homework() {
				// 获取当天孩子作业记录
				// 文档：https://www.showdoc.cc/416494108281686?page_id=2660500789997413
				this.$zapi
					.apiPost('user/Grade.Stuhomework/getDayHomeworklist', {
						student_id: this.currentChild.student_id
					})
					.then(res => {
						if (res.data.code == 200) {
							var homeworkList = res.data.data;
							homeworkList.forEach((item, index) => {
								item.start_time = util.getFormatTime(item.start_time);
								item.end_time = util.getFormatTime(item.end_time);
								// item.correct_state = 2
								switch (item.correct_state) {
									case 0:
										item.correct_state_msg = '未完成';
										item.color = 'orange';
										break;
									case 1:
										item.correct_state_msg = '批改中';
										item.color = 'blue';
										break;
									case 2:
										item.correct_state_msg = '已完成';
										item.color = 'green';
										break;
									case 3:
										item.correct_state_msg = '已超时';
										item.color = 'red';
										break;
								}
								switch (item.type) {
									case 1:
										item.type_msg = '随堂练习';
										item.is_exam_type = 1;
										break;
									case 2:
										item.type_msg = '课前作业';
										item.is_exam_type = 1;
										break;
									case 3:
										item.type_msg = '课后作业';
										item.is_exam_type = 1;
										break;
									case 4:
										item.type_msg = '预习作业';
										item.is_exam_type = 1;
										break;
									default:
										item.type_msg = '班级测验';
										item.is_exam_type = 2;
										break;
								}
							});

							this.homeworkList = homeworkList;
						} else {
							this.homeworkList = [];
						}
					});
			},
			announcement() {
				// 获取公告列表
				// 文档：http://lz.25002.cn/msmcenter_api/index.php?act=api&tag=8#info_api_3295c76acbf4caaed33c36b1b5fc2cb1
				this.$gapi
					.apiPost('user/app/listsNotice', {
						type: 3
					})
					.then(res => {
						var data = res.data.data.data;
						var noticeList = [];
						for (var i = 0; i < data.length; i++) {
							var arr = {};
							arr.notice_title = data[i].notice_title;
							noticeList.push(arr);
						}
						this.msgList = noticeList;
						this.$forceUpdate();
					});
			},
			child() {
				// 获取孩子列表
				// 文档：https://www.showdoc.cc/416494108281686?page_id=2661929221917018
				this.$zapi.apiPost('user/currency.Parents/childlist').then(res => {
					var childList = res.data.data;
					this.childList = childList;

					childList.forEach((item, index) => {
						if (!item.nicheng) item.nicheng = '未设置昵称';
					});
					let currentChild = uni.getStorageSync('currentChild');
					if (!currentChild) {
						this.currentChild = childList[0];
						uni.setStorageSync('index', 0);
						uni.setStorageSync('currentChild', this.currentChild);
					} else {
						this.currentChild = currentChild;
					}
					// console.log(this.childList);
					// 获取作业列表
					this.homework();
				});
			},
			titleClick: function(index) {
				this.titleIndex = index;
				if (index == 0 || index == 2) {
					this.classType = 2;
					this.tableType = 1;
					if (index == 2) {
						this.selfType = 2;
					} else {
						this.selfType = 1;
					}
				} else if (index == 3) {
					this.classType = 1;
					this.tableType = 2;
				}
			},
			getnoticNum: function() {
				this.$zapi.apiPost('user/notice.User/noticeBaseNum').then(res => {
					if (res.data.code == 200) {
						this.notice_num = res.data.data.notice_num;
					}
				});
			},
		}
	};
</script>

<style lang="scss">
	/* 文章 */
	.articleList {
		width: 100%;
		background-color: #ffffff;
		border-radius: 20upx;
		padding: 20upx 0;
		margin-bottom: 10upx;
	}

	.articleMenu {
		white-space: nowrap;
		height: 80upx;
		font-size: 28upx;
		color: #999999;
		padding: 0 30upx;
		box-sizing: border-box;
		position: relative;
	}

	.articleMenu .menu {
		display: inline-block;
		margin-right: 30upx;
	}

	.articleMenu .active {
		font-size: 34upx;
		color: #333333;
		font-weight: bold;
		position: relative;
	}

	.articleMenu .active::after {
		display: block;
		content: '';
		position: absolute;
		width: 40upx;
		height: 8upx;
		background-color: #ff9900;
		border-radius: 4upx;
		left: 50%;
		transform: translateX(-50%);
	}

	.more {
		position: absolute;
		right: 0;
		top: 50%;
		color: #ff9900;
		font-size: 24upx;
		transform: translateY(-50%);
	}

	.news_two {
		margin-top: 0 !important;
	}

	page {
		background: #f7f7f7;
	}

	.swiper {
		height: 422upx;
		/* box-shadow: 0 .1rem .2rem rgba(1, 1, 1, .4); */
		border-radius: 5px;
	}

	.swiper-item {
		height: 100%;
	}

	.swiper1-img {
		width: 100%;
		height: 100%;
	}

	.slide-block {
		margin-top: 0 !important;
		padding-top: 20upx !important;
	}

	.nav-wrap {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 60upx 30upx 20upx;
		box-sizing: border-box;
		position: fixed;
		z-index: 5;
		top: 0;
	}

	.iconsaoyisao {
		font-size: 50upx;
		margin-right: 30upx;
	}

	.icontongzhi- {
		font-size: 40upx;
	}

	.select-child-wrap {
		position: relative;
	}

	.select-child {
		position: absolute;
		top: 60upx;
		left: 50%;
		transform: translateX(-50%);
		padding: 0 10upx;
		box-sizing: border-box;
		background: #fff;
		border-radius: 5px;
		border: 1px solid #f1f2f3;
		white-space: nowrap;
	}

	.child-item {
		text-align: center;
		font-size: 32upx;
		color: #666;
		line-height: 60upx;
	}

	.child-name {
		margin-right: 12upx;
		font-size: 32upx;
		font-weight: bold;
		color: #666;
		line-height: 60upx;
	}

	/* 今日作业 */
	.homework-wrap {
		/* background-color: #fff; */
		border-radius: 20px;
		margin-bottom: 20upx;
	}

	.homework-title-wrap {
		display: flex;
		justify-content: space-between;
		padding: 0 30upx;
		background: #fff;
		border-radius: 20rpx 20rpx 0rpx 0rpx !important;
	}

	.homework-title {
		color: #333;
		font-size: 34upx;
		font-weight: bold;
		line-height: 80upx;
	}

	.all-homework {
		font-size: 24upx;
		color: #999;
	}

	.btn-all-homework {
		font-size: 24upx;
	}

	.all-homework-text {
		line-height: 80upx;
	}

	.class-wrap {
		display: flex;
		justify-content: space-between;
		color: #666666;
		height: 72upx;
		border-bottom: 1px solid #e5e5e5;
	}

	.class-name {
		font-size: 34upx;
		line-height: 72upx;
	}

	.homework-type {
		font-size: 34upx;
		line-height: 72upx;
	}

	.work-status {
		position: absolute;
		left: -40upx;
		top: 24upx;
		width: 180upx;
		height: 44upx;
		line-height: 44upx;
		transform: rotate(-45deg);
		font-size: 26upx;
		text-align: center;
		color: #fffefe;
	}

	.green {
		background: #00d5a2;
	}

	.blue {
		background: #00acfe;
	}

	.orange {
		background: #ff9900;
	}

	.red {
		background: #ff7171;
	}

	.show_bg {
		background: #ff9900;
	}

	.content {
		width: 100%;
	}

	.image {
		width: 100%;
		height: 422upx;
	}

	.image image {
		width: 100%;
		height: 100%;
	}

	.searchBlock {
		position: relative;
		box-sizing: border-box;
		display: flex;
		height: 60upx;
		padding: 0 30upx;
		justify-content: space-between;
		border-radius: 22px;
		background: #fff;
	}

	.nav-bar-wrap {
		margin-right: 40upx;
		line-height: 60upx;
		color: #666;
		font-size: 32upx;
	}

	.cont {
		width: 688upx;
		margin: auto;
	}

	.modular {
		width: 100%;
		height: 278upx;
		background: #ffffff;
		border-radius: 20upx;
		position: relative;
		top: -74upx;
	}

	.clos {
		height: 198upx;
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 2upx solid #e5e5e5;
	}

	.col {
		color: #333333;
		font-size: 32upx;
		background-color: #ffffff;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
	}

	.col image {
		width: 80upx;
		height: 80upx;
	}

	.notice {
		display: inline-flex;
		height: 48upx;
		line-height: 48upx;
		padding: 14upx 30upx;
	}

	.notice-title {
		border-right: 2upx solid #e5e5e5;
		color: #ff9900;
		font-size: 38upx;
		font-weight: bold;
		width: 160upx;
		height: 48upx;
		line-height: 48upx;
	}

	.notice-art {
		color: #666666;
		font-size: 26upx;
		padding-left: 10upx;
		width: 460upx;
		height: 48upx;
		line-height: 48upx;
	}

	swiper {
		height: 60upx;
	}

	.notice-cont {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.class {
		width: 100%;
		height: 70upx;
		background: #ffffff;
		display: inline-flex;
		border-radius: 20upx 20upx 0 0;
	}

	.class image {
		width: 284upx;
		height: 70upx;
	}

	.type {
		text-align: center;
		padding-right: 40upx;
		border-right: 2upx solid #e5e5e5;
		line-height: 1;
		height: 96upx;
		margin-top: 20upx;
		margin-left: 15%;
	}

	.h_item {
		// margin-bottom: 20upx;
		background-color: #FFFFFF;
		border-top: 1px solid #E5E5E5;
	}

	.h_item:last-child {
		border-radius: 0 0 20upx 20upx;
	}

	.h_item .grid_item {
		position: relative;
		padding: 0 32upx;
		overflow: hidden;
		/* border-top: 2upx solid #efefef; */
		border-radius: 20upx;
	}

	.grid_r1 {
		font-weight: bold;
		font-size: 36upx;
		height: 92upx;
		line-height: 92upx;
		text-align: center;
		border-bottom: 1px solid #e5e5e5;
		display: inline-flex;
		width: 100%;
		justify-content: center;
		align-items: center;
	}

	.grid_r1 text {
		max-width: 80%;
		margin-left: 30upx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.grid_r1 view {
		width: 28upx;
		height: 28upx;
		padding: 2upx 4upx;
		line-height: 1.1;
		overflow: hidden;
		background: #00acfe;
		color: #ffffff;
		border-radius: 8upx;
		margin-left: 18upx;
	}

	.score {
		display: inline-flex;
		float: right;
		font-weight: Regular;
		font-size: 34upx;
		line-height: 72upx;
		color: #666666;
	}

	.grid_r2 {
		font-weight: Regular;
		font-size: 34upx;
		color: #666666;
		height: 72upx;
		line-height: 72upx;
		border-bottom: 1px solid #e5e5e5;
	}

	.grid_r2:last-child {
		border-bottom: none;
	}

	.grid_r5 {
		display: flex;
		flex-direction: row-reverse;
	}

	.finish {
		color: #00d5a2;
		font-size: 34upx;
		font-weight: bold;
		height: 100upx;
		line-height: 100upx;
	}

	.btn_item {
		display: flex;
		justify-content: center;
		align-items: center;
		border-radius: 0;
		font-weight: Regular;
		font-size: 34upx;
		line-height: 34upx;
		padding: 14upx 26upx;
		color: #ffffff;
		margin: 32upx 0 26upx 0;
	}

	.btn_report {
		background-color: #00d555;
	}

	.btn_error {
		background-color: #ff9000;
	}

	.btn_analyse {
		background-color: #00adff;
	}

	.btn_check {
		background-color: #005ccc;
	}

	.btn_start {
		background-color: #00acfe;
	}

	.btn_ing {
		color: #a665fb;
		padding: 0;
	}

	.tableView {
		margin: -48upx auto 20upx;
		width: 690upx;
		border-radius: 20upx;
		background: #ffffff;
		padding-bottom: 20upx;
	}

	.titleView {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 80upx;
		border-bottom: 2upx solid #e5e5e5;
	}

	.title-left {
		width: 20%;
		color: #333333;
		font-size: 36upx;
		font-weight: bold;
		margin-left: 30upx;
	}

	.title-right {
		width: 80%;
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	.titleName {
		color: #666666;
		font-size: 30upx;
	}

	.titleActive {
		color: #ff9900;
	}

	.not_data {
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.not_data i {
		margin-top: 20upx;
		font-size: 400upx;
		line-height: 300upx;
		color: rgba(229, 229, 229, 1);
	}

	.not_data_text {
		color: #c2c2c2;
		font-size: 38upx;
		line-height: 60upx;

	}

	.articleTitle {
		font-size: 34upx;
		color: #333333;
		font-weight: bold;
		padding-left: 30upx;
		box-sizing: border-box;
	}

	.icon-notice {
		// width: 60upx;
		height: 60upx;
		line-height: 60upx;
		z-index: 999;
		color: #fff;
		border-radius: 50%;
		text-align: center;
		display: flex;
		align-items: center;
	}

	.pluls_text {
		height: 24upx;
		border-radius: 28upx;
		background: #fc302a;
		position: fixed;
		top: 62rpx;
		right: 25upx;
		color: #FFFFFF;
		text-align: center;
		font-size: 16upx;
		line-height: 25upx;
		padding: 2upx 8upx;
	}

	.icontongzhi- {
		font-size: 44upx;
	}
</style>
